package com.hd.entity.activiti;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 流程类型 实体类
 * @author <a href="mailto:hzhh123@sina.cn">hzhh123</a>
 * @date 2018-08-10 05:53
 *
 * @version 1.0
 *
 */
@Entity
@Table(name = "act_process_type")
@DynamicInsert(true)
@DynamicUpdate(true)
public class ProcessType implements Serializable {
	private static final long serialVersionUID = 1L;
	@Id
	private String id;
	/**
	* 父类
	*/
	@Column(name="pid")
	private String pid;
	/**
	* 名称
	*/
	@Column(name="name")
	private String name;
	/**
	* 排序
	*/
	@Column(name="seq")
	private Integer seq;
	/**
	* key值
	*/
	private String iconCls;
	@Column(name="key_")
	private String key;
	
	private String procdefid;
	/**
	 * 流程部署ID
	 */
	@Column(name = "deployment_id")
	private String deploymentId;
	
	private Integer type=0;//type=0大类,type=1是小类
	private String version;//版本

	private Integer status;//1-可用，0-不可用
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getSeq() {
		return seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getProcdefid() {
		return procdefid;
	}

	public void setProcdefid(String procdefid) {
		this.procdefid = procdefid;
	}

	public String getIconCls() {
		return iconCls;
	}

	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getDeploymentId() {
		return deploymentId;
	}

	public void setDeploymentId(String deploymentId) {
		this.deploymentId = deploymentId;
	}
}
